﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Newtonsoft.Json;

namespace Ccit.SysPlat.Purview
{
    /// <summary>
    /// Description: 系统平台权限菜单 -> 菜单管理框架页面
    /// Author: tim 2010-03-02
    /// </summary>
    public partial class sys_menu_frame : Ccit.Utils.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                _hidEntryParam.Value = getPageParameter();
            }
        }

        private string getPageParameter()
        {
            string formId = (null != Request.QueryString["formId"]) ? Request.QueryString["formId"].ToString() : string.Empty;
            string lstModeId = (null != Request.QueryString["lstModeId"]) ? Request.QueryString["lstModeId"].ToString() : string.Empty;
            string sourceType = (null != Request.QueryString["sourceType"]) ? Request.QueryString["sourceType"].ToString() : "0";
            string retListURL = (null != Request.QueryString["retListURL"]) ? Request.QueryString["retListURL"].ToString() : string.Empty;

            MsEntryParam msEntryParam = new MsEntryParam {
                formId = formId,
                lstModeId = lstModeId,
                sourceType = sourceType,
                retListURL = retListURL
            };

            string serExpr = JavaScriptConvert.SerializeObject(msEntryParam);
            return serExpr;
        }
    }
}
